<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/login.css'}">

<html>
<link href="file:///D|/EclipseProjetos/sigcfc/public/stylesheets/login.css" rel="stylesheet" type="text/css">

<body>
<H2 class="style1">&nbsp;</H2>
<H2 class="style1">LOGIN</H2>
<form action="@{Application.sigcfc}" method="POST">	
	<table width="200" border="0" align="center">
      <tr>
        <th scope="row"><div align="right"><span class="style1">Login:</span></div></th>
        <td><strong>
          <input name="login" type="text" id="login" size="15"  maxlength="20">
        </strong></td>
      </tr>
      <tr>
        <th scope="row"><div align="right"><span class="style1">Senha:</span></div></th>
        <td><span class="style3">
          <input name="senha" type="password" id="senha" size="16" maxlength="6"/>
        </span></td>
      </tr>
      <tr>
        <th colspan="2" scope="row"><p>&nbsp;
          </p>
          <p>
            <input type="submit" name="ENTRAR" id="ENTRAR" value="ENTRAR">
          </p></th>
      </tr>
    </table>
	<label for="nome"><span class="style1"><br>
  </span></label>
	<span class="style4"><strong>
  </strong></span><br/>
			
	<label for="senha"></label>
	<p class="style3">&nbsp;</p>
	<p style="color:red"> <strong>${result}<strong> </p>
</form>


</body>
</html>



#{ifErrors}
	 <p style="color:red;"><strong>ATENÇÃO: <strong>Preencha todos os campos obrigatórios.</p>	
#{/ifErrors}


<font face=arial, size=1> NATAL/RN - </font>

<Script Language="JavaScript">
<!--

function v_NR(tecla){
	if(typeof(tecla) == 'undefined')
		var tecla = window.event;
		var codigo = (tecla.which ? tecla.which : tecla.keyCode ? tecla.keyCode : tecla.charCode);
// permite n�meros, 8=backspace, 46=del e 9=tab
	if ( (codigo >= 48 && codigo <= 57) || (codigo >= 96 && codigo <= 105) || codigo == 8 || codigo == 46 || codigo == 9 ){
		return true; 
	}
	else{
		alert("Apenas números são permitidos !"); 
		return false;
	} 
}

mydate = new Date();
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
myweekyear= mydate.getYear();
weekday= myweekday;

if(myday == 0)
day = " Domingo, "

else if(myday == 1)
day = " Segunda-Feira, "

else if(myday == 2)
day = " Terça-Feira, "

else if(myday == 3)
day = " Quarta-Feira, "

else if(myday == 4)
day = " Quinta-Feira, "

else if(myday == 5)
day = " Sexta-Feira, "

else if(myday == 6)
day = " Sábado, "

if(mymonth == 0)
month = "Janeiro "

else if(mymonth ==1)
month = "Fevereiro "

else if(mymonth ==2)
month = "Março "

else if(mymonth ==3)
month = "Abril "

else if(mymonth ==4)
month = "Maio "

else if(mymonth ==5)
month = "Junho "

else if(mymonth ==6)
month = "Julho "

else if(mymonth ==7)
month = "Agosto "

else if(mymonth ==8)
month = "Setembro "

else if(mymonth ==9)
month = "Outubro "

else if(mymonth ==10)
month = "Novembro "

else if(mymonth ==11)
month = "Dezembro "

document.write("<font face=arial, size=1>"+ day);
document.write(myweekday+" de "+month);
document.write(" de "+ myweekyear+ "</font>");
// -->
</script>